package com.situ.shoplook.common.service;

import com.github.pagehelper.PageInfo;
import com.situ.shoplook.common.model.User;
import jakarta.servlet.http.HttpSession;

import java.util.Map;

/**
 * @Author xinchen
 * @Date: 2024/08/30/ 17:38
 * @Description
 */
public interface UserService {
    int save(User user) throws Exception;

    int remove(Integer[] ids);

    int update(User user) throws Exception;

    PageInfo<User> searchByPage(Integer page, Integer limit, User user);


    Map<String, Object> login(String loginName, String password, HttpSession httpSession);

    Map<String, Object> register(String loginName, String password);

    User findById(Long userId);
}
